package com.to8to.kitt.client;

import com.to8to.kitt.Constants;


public class ThriftClientConfig {

	public String id;
	
	public String host;
	
	public int port;
	
	public int timeoutms;
	
	public ThriftClientConfig(){}
	
	public ThriftClientConfig(String host, int port){
		this(null, host, port, Constants.DEFAULT_CLIENT_TIMEOUT);
	}
	
	public ThriftClientConfig(String id, String host, int port){
		this(id, host, port, Constants.DEFAULT_CLIENT_TIMEOUT);
	}
	
	public ThriftClientConfig(String id, String host, int port, int timeoutms){
		this.id = id;
		this.host = host;
		this.port = port;
		this.timeoutms = timeoutms;
	}
	
	
	public String toString()
	{
		return host + ":" + port;
	}
}
